package io.renren.modules.task.utils;

import org.apache.commons.codec.digest.DigestUtils;

/**
 * @Author: 蔡翔
 * @Date: 2019/7/5 16:53
 * @Version 1.0
 */
public class MD5Utils {
    public static String MD5(String src){
        return DigestUtils.md5Hex(src);
    }
    private static final String salt = "1a2b3c4d";
    public static String doubleMD5(String inputPass){
        String str = "cx" + salt.charAt(0) + inputPass + salt;
        return MD5(MD5(str));
    }

    public static void main(String[] args) {
        System.out.println(doubleMD5("cxcx"));
    }
}